<template>
  <div style="width: 100vw;height: 100vw;overflow: hidden;display: flex;">
    <div style="flex: 1">
      <el-image style="width: 100%;height: 100%"  fit="cover"
                src="https://img1.baidu.com/it/u=4097856652,4033702227&fm=253&fmt=auto&app=120&f=JPEG?w=1422&h=800"/>
    </div>
    <div class="welcome-title">
      <div style="font-size: 30px;font-weight: bold">welcome to our course system</div>
      <div style="margin-top: 10px;">在这里你可以学习如何使用Java，如何搭建网站，并且与Java之父密切交流</div>
      <div style="margin-top: 5px">在这里你可以交友</div>
    </div>
    <div style="width: 400px;background-color: aqua;z-index: 1">
        <router-view v-slot="{ Component }">
            <transition name="el-fade-in-inear" mode="out-in">
                <component :is="Component" style="height: 100%;" />
            </transition>
        </router-view>
    </div>
  </div>
</template>

<script setup>

</script>

<style scoped>
.welcome-title {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: white;
  text-shadow: 0 0 10px black;
}
</style>
